package com.socialcoco.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵志浩
 * @since 2022-03-17 09:16:50
 */
@Data
@TableName("chat")
@ApiModel(value = "Chat对象", description = "")
public class Chat {

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("uid1")
    private Integer uid1;

    @TableField("content")
    private String content;

    @TableField("uid2")
    private Integer uid2;

    @TableField("type")
    private Integer type;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("active")
    private Integer active;


}
